package com.red.star.wechat.data.mappers;

import com.red.star.wechat.data.core.base.MyMapper;
import com.red.star.wechat.data.entity.ConvertCoupon;
import com.red.star.wechat.data.entity.ConvertMoney;
import com.red.star.wechat.data.entity.CouponPackage;

import com.red.star.wechat.data.entity.CouponPackageRelation;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PackageCouponMapper extends MyMapper<CouponPackage> {

    List<CouponPackage> getAllPackageCouponCode(@Param("mallCode") String mallCode);

    Integer addPackageCoupon(ConvertCoupon convertCoupon);

    Integer addCouponMoney(ConvertMoney convertMoney);

    CouponPackage findCouponPackageId(String packageCouponId);

    List<CouponPackageRelation> findCouponIds(Integer packageCouponId);

    List<CouponPackageRelation> findCouponReltionId(List<String> findCouponReltionId);
    void updateConvertMoney(ConvertMoney convertMoney);

}
